﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Media.Imaging;

namespace GeoLocationSharing.View
{
    public partial class RoundTextBoxControl : UserControl
    {
        public delegate void SearchBoxCleared();
        public event SearchBoxCleared ClearUP;
        Image ii;

        bool IsCrossVisible = false;
                
        public RoundTextBoxControl()
        {
            InitializeComponent();
        }

        private void ClearTextBoxClick(object sender, MouseButtonEventArgs e)
        {
            //Intialize Model
            GeoLocationSharing.Model.InternalStore.Initilalize();
            ii = GetTemplateChild("Search_btn") as Image;
//            if (IsCrossVisible)
//            {
//                SearchBox.Text = string.Empty;
//                IsCrossVisible = false;
//                Image im = sender as Image;
//                im.Visibility = Visibility.Collapsed;
//                if (ClearUP != null)
//                    ClearUP();
//                
//                return;
//            }
            
          
                       
        }               
    }
}
